<?php

$conn = mysql_connect("localhost","root","root");
mysql_query("set names utf8");
if($conn)
{
	mysql_select_db("bbs");
}
else 
{
	die("连接失败".mysql_error());
}

?>